package com.chixing.day18_thread;

import java.time.LocalDate;

public class Product {
    private int proId;
    private String proName;
    private double proPrice;
    private String proAddress;
    private LocalDate proDate;

    public Product(int proId,String proName,double proPrice,String proAddress,LocalDate proDate){
        this.proId = proId;
        this.proName = proName;
        this.proPrice = proPrice;
        this.proAddress = proAddress;
        this.proDate = proDate;
    }

    public double getProPrice() {
        return proPrice;
    }

    public void setProPrice(double proPrice) {
        this.proPrice = proPrice;
    }

    public int getProId() {
        return proId;
    }

    public void setProId(int proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProAddress() {
        return proAddress;
    }

    public void setProAddress(String proAddress) {
        proAddress = proAddress;
    }

    public LocalDate getProDate() {
        return proDate;
    }

    public void setProDate(LocalDate proDate) {
        this.proDate = proDate;
    }

    @Override
    public String toString() {
        return "Product{" +
                "proId=" + proId +
                ", proName='" + proName + '\'' +
                ", proPrice=" + proPrice +
                ", proAddress='" + proAddress + '\'' +
                ", proDate=" + proDate +
                '}';
    }

}

